//
//  WeddingCarCartNotiHeader.m
//  BaseProject
//
//  Created by 王洋 on 2021/5/17.
//  Copyright © 2021 王洋. All rights reserved.
//

#import "WeddingCarCartNotiHeader.h"

@implementation WeddingCarCartNotiHeader

- (void)awakeFromNib {
    [super awakeFromNib];
    
    // gradient
    CAGradientLayer *gl = [CAGradientLayer layer];
    gl.frame = CGRectMake(0,0,TTScreenWidth,32);
    gl.startPoint = CGPointMake(1.08, 0.5);
    gl.endPoint = CGPointMake(0, 0.5);
    gl.colors = @[(__bridge id)[UIColor colorWithRed:255/255.0 green:184/255.0 blue:126/255.0 alpha:0.08].CGColor, (__bridge id)[UIColor colorWithRed:255/255.0 green:114/255.0 blue:0/255.0 alpha:0.08].CGColor];
    gl.locations = @[@(0), @(1.0f)];
    [self.bgView.layer insertSublayer:gl atIndex:0];

}

@end
